all: processes

matrix: matrix.c
	gcc -Wall -DCLS=$(getconf LEVEL1_DCACHE_LINESIZE) -std=c99 -msse2 -O3 -o $@ matrix.c

shared1: shared1.cpp
	gcc -Wall -o shared1 shared1.cpp

shared2: shared2.cpp
	gcc -Wall -o shared2 shared2.cpp

test: shared1 shared2
	./shared1
	./shared2

clean: 
	rm -f shared1
	rm -f shared2
